{% extends 'index.njk' %}
{% block hello %}

<h1 >hello  {{ title }}</h1>
<p class="p1">Welcome use hello</p>


{% if show %}
<div>
<h2 >{{ arr | join('==')  }}</h2>
<h2>{{ title | replace('K','H')  }}</h2>
<h2>{{ num | round() }}</h2>
<h2>{{ num | round(2,'floor') }}</h2>
<h3>{{ str | capitalize }}</h3>
</div>
{% else %}
<h4>结束了</h4>
{% endif %}

<button onclick="fun()">调用方法</button>


<ul>
{% for item in list %}
    {% if item.isShow %}
    <li>{{ item.name }}</li>
    {% endif %}
{% endfor %}
</ul>
{% for key, value in user %}
    <li>{{key}}---{{value}}</li>

{% endfor %}
<ul>

</ul>
{% endblock %}